package com.test.manager;

import java.util.List;

import com.test.common.Query;
import com.test.entity.SysMenu;


/**
 * 系统菜单
 *
 * @author luotuo
 * 
 */
public interface SysMenuManager {

	List<SysMenu> listUserMenu(Long userId);
	
	List<SysMenu> listParentId(Long parentId, List<Long> menuIdList);
	
	List<SysMenu> listMenu(Query search);
	
	List<SysMenu> listNotButton();
	
	int saveMenu(SysMenu menu);

	SysMenu getMenuById(Long id);
	
	int updateMenu(SysMenu menu);
	
	int batchRemove(Long[] id);
	
	boolean hasChildren(Long[] id);

}
